<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>欢迎登陆无线热点网络</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="css/body.css" rel="stylesheet">
    <?php
		include realpath(dirname(__FILE__))."/mikrotik_api/normal_login.php";
	?>
  </head>

  <body>
    <div class="masthead">
        <div class="navbar">
          <div class="navbar-inner">
            <div class="container">
              <ul class="nav">
                <li class="active"><a href="index.php">登陆网络</a></li>
                <li><a href="register.php">注册账号</a></li>
                <li><a href="help.php">帮助系统</a></li>
              </ul>
            </div>
          </div>
        </div><!-- /.navbar -->
      </div>

    <!-- Carousel
    ================================================== -->
    <div class="span7">
    <div id="myCarousel" class="carousel slide">
      <div class="carousel-inner">
        <div class="item active">
          <img src="admin/server/php/files/01.jpg" alt="">
          <div class="container">
            <div class="carousel-caption">
            </div>
          </div>
        </div>
        <div class="item">
          <img src="admin/server/php/files/02.jpg" alt="">
          <div class="container">
            <div class="carousel-caption">
            </div>
          </div>
        </div>
        <div class="item">
          <img src="admin/server/php/files/03.jpg" alt="">
          <div class="container">
            <div class="carousel-caption">
            </div>
          </div>
        </div>
        <div class="item">
          <img src="admin/server/php/files/04.jpg" alt="">
          <div class="container">
            <div class="carousel-caption">
            </div>
          </div>
        </div>
        <div class="item">
          <img src="admin/server/php/files/05.jpg" alt="">
          <div class="container">
            <div class="carousel-caption">
            </div>
          </div>
        </div>
      </div>
      <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
      <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
    </div><!-- /.carousel -->
    </div>
    
    <div class="span5">
    <div class="alert" id="logonerror">
      <?php if(isset($error) && strlen($error) > 2) echo "登录错误: ".$error; ?>
    </div>
      <form class="form-signin" name="ros_login" action="<?php echo $linkloginonly; ?>" method="post">
        <h2 class="form-signin-heading">登录热点网络</h2>
        <p>&nbsp;</p>
        <input type="text" name="ros_username" class="input-block-level" placeholder="请输入您的登陆密码">
        <!-- <input type="password" name="ros_password" class="input-block-level" placeholder="请输入您的密码"> -->
        <input type="hidden" name="ros_password" class="input-block-level" placeholder="请输入您的密码" value='123456'>
        <label class="checkbox">
          <input type="checkbox" name="ros_remember_me" value="remember-me" checked='checked'> 记住我 
        </label>
        <!-- 下面两个字段为ROS隐藏使用字段 -->
        <input type="hidden" name="dst" value="<?php echo $linkorig; ?>" />
		<input type="hidden" name="popup" value="true" />
        
        <button name="ros_submit" class="btn btn-large btn-primary" type="submit" onClick= "doLogin()">登陆</button>
        <button  class="btn btn-large btn-danger" type="button" value="访问官网" onClick="location.href='http://www.juneyaohotels.com/'">访问官网 </button>
      </form> 
    </div>
    
<?php /* 对比用表单
    <form name="sendin" action="<?php echo $linkloginonly; ?>" method="post">
		<input type="hidden" name="username" />
		<input type="hidden" name="password" />
		<input type="hidden" name="dst" value="<?php echo $linkorig; ?>" />
		<input type="hidden" name="popup" value="true" />
		<input type="submit" name="submit" value="login" />
	</form>
*/
?>


    <!-- Marketing messaging and featurettes
    ================================================== -->
    <!-- Wrap the rest of the page in another container to center all the content. -->

    <div class="container marketing">

      <!-- Three columns of text below the carousel -->
      <div class="row">
        <div class="span5">
          <div class="hero-unit" style="padding: 3px;">
          <p><?php include "admin/notice.php"; ?></p>
           </div>
          <p><a class="btn" href="help.php">更多帮助</a></p>
        </div><!-- /.span4 -->
      </div><!-- /.row -->


      <!-- START THE FEATURETTES -->

      <hr class="featurette-divider">


      <!-- /END THE FEATURETTES -->


      <!-- FOOTER -->
      <footer>
        <p>&copy; 2013 Company, Inc. &middot; <a href="#">隐私保护</a> &middot; <a href="#">条款</a></p>
      </footer>

    </div><!-- /.container -->



    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script>
      !function ($) {
        $(function(){
          // carousel demo
          $('#myCarousel').carousel()
        })
      }(window.jQuery)
    </script>
    <script src="js/holder.js"></script>
    
  </body>
</html>


